package com.twitch.financialAnalysis.system;

import lombok.Data;

/**
 * @author: twitch
 * @Date: 2021/4/8
 * @description: ResultData
 */
@Data
public class ResultData<T> {
    private Integer code = 0;//result code
    private String message = "调用成功";//result message
    private T data;//result data

    public ResultData() {
    }

    public ResultData(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResultData(String message, T data) {
        this.message = message;
        this.data = data;
    }

    public ResultData(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ResultData(T data) {
        this.data = data;
    }

}
